<div id="main_wrap">
	<div class="center_wrap clearfix">
        <h2 class="no_top breadcrumb">{$lang483}</h2>
		{include file="accountmenu.tpl"}
		<div class="right col1" id="no_top">
  			<div class="cat_box_full clearfix"> 
    			<ul id="search_nav" class="clearfix">
  					<li class="current">{$lang483}<span></span></li>    
				</ul>
    			<div class="cat_body_full clearfix">
      				<p>
                    	<div>
                            {if $error ne ""}
                            {include file="show_error.tpl"}
                            {elseif $showmessage ne ""}
                            {include file="show_message.tpl"}
                            {else}
                            
                            <div>
                                <h2>{$lang267}: {$msgarray[0].subject}</h2>
                                <div style="float:left; padding-right:10px;">
                                    <br />
                                    {insert name=get_member_profilepicture assign=profilefpic value=var USERID=$msgarray[0].MSGFROM}
                                    <a href="{$baseurl}/{$msgarray[0].username|stripslashes}"><img class="vThumb" src="{$membersprofilepicurl}/thumbs/{$profilefpic}" alt="{$msgarray[0].username|stripslashes}" title="{$msgarray[0].username|stripslashes}" /></a>
                                    <br />
                                    <a class="vTitle" href="{$baseurl}/{$msgarray[0].username|stripslashes}">{insert name=get_username_from_userid USERID=$msgarray[0].MSGFROM}</a>
                                </div>
                                <div style="padding-left:10px;">
                                    <br />
                                    <b>{$lang268}:</b><br />
									{insert name=get_stripped_phrase value=a assign=messagedetails details=$msgarray[0].message}{$messagedetails}
                                </div>
                            </div>
                            <div class="clear"></div>
                            <div style="width:550px" align="right"><a href="#sendmessagelink" id="sendmessageto" onclick="showMe('sendmessageContainer');">[{$lang484}]</a> | <a href="{$baseurl}/deletemessage.php?messageid={$msgarray[0].MID}">[{$lang485}]</a></div>
                            <br />
                            
                            
                            
                            
                            
                            <!-- Reply To Message Begin -->
                            <div id="sendmessageContainer" style="display:none;">
                                <h2>{$lang486}</h2>
                                    <div>
                                        <center>
                                        <div id="sendmessagediv" style="width:90%; padding-top:10px; padding-bottom:10px;" align="left">
                                            <script type="text/javascript" src="{$baseurl}/js/charcount.js"></script>
                                            <form name="sendmessageform" method="POST" action="#">
                                            <b>{$lang267}:</b><br />
                                            <textarea readonly="readonly" name="sendmessagesubject" id="sendmessagesubject" rows="1" cols="60">Re: {$msgarray[0].subject}</textarea><br />
                                            <div style="padding-top:10px"></div>
                                            <b>{$lang268}:</b><br />
                                            <textarea name="sendmessagetext" id="sendmessagetext" rows="3" cols="60" onblur="textrem(this,this.form.rem, '{$max_com_msg}');" onkeyup="textrem(this,this.form.rem, '{$max_com_msg}');" onkeydown="textrem(this,this.form.rem, '{$max_com_msg}');" ></textarea><br />
                                            <input class="submitButton" type="button" name="submitsendmessage" value="Send Message" onclick="fxSendMessage('sendmessagediv','sendmessagesubject','sendmessagetext',{$smarty.session.USERID},{$msgarray[0].MSGFROM})">
                                            <br /><input type="text" name="rem" style="width:30px" maxlength="4" size="4" value="{$max_com_msg}" onblur="textrem(this.form.addcomment, this, '{$max_com_msg}');" readonly />&nbsp;{$lang787}
                                            </form>
                                        </div>
                                        <div align="center" id="sendmessagesuccess" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showSuccess"><b>{$lang269}</b></div></DIV>
                                        <div align="center" id="sendmessagefailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang270}</b></div></DIV>
                                        <div align="center" id="msubjectfailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang271}</b></div></DIV>
                                        <div align="center" id="mtextfailure" style="display:none;width:90%; padding-top:10px; padding-bottom:10px;"><div class="showError"><b>{$lang272}</b></div></DIV>
                                        </center>
                                    </div>
                                    <div align="center"><a href="#closesendmessage" name="Send_Message_Close" onclick="hideMe('sendmessageContainer');">[{$lang487}]</a></div>
                            </div>
                            <!-- Reply To Message End -->
    
    
    
    
    
    
    
    
    
    
                            {/if}
            
            
            
                        </div>
                    </p>
				</div>
			</div>
		</div>

        <div class="clear"></div>

	</div>
</div>